package com.qf.hospital.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.qf.hospital.serializer.Integer2BooleanJsonSerializer;

/**
 * @author zjw
 * @description 角色菜单的VO
 * @date 2021/10/19 9:34
 */
public class LayUIDTreeVO {

    /**
     * 标识
     */
    private Integer id;

    /**
     * 展示的标题
     */
    private String title;

    /**
     * 指定父节点的标识
     */
    private Integer parentId;

    /**
     * true - 展开，false - 收起  。。
     */
    @JsonSerialize(using = Integer2BooleanJsonSerializer.class)
    private Integer spread;

    /**
     * "1" - 勾选，"0" - 不勾选
     */
    @JsonInclude(value = JsonInclude.Include.NON_EMPTY)
    private String checkArr;

    @Override
    public String toString() {
        return "LayUIDTreeVO{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", parentId=" + parentId +
                ", spread=" + spread +
                ", checkArr=" + checkArr +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Integer getSpread() {
        return spread;
    }

    public void setSpread(Integer spread) {
        this.spread = spread;
    }

    public String getCheckArr() {
        return checkArr;
    }

    public void setCheckArr(String checkArr) {
        this.checkArr = checkArr;
    }
}
